import App from './App';
import { createSSRApp } from 'vue';
import store from './store';
import {registerPlugins} from './utils/plugins';
import uviewPlus from '@/uni_modules/uview-plus';
import {initRequest} from '@/api/request.ts';

import './utils/interceptor/promisifyAdaptor';
import './utils/interceptor/routeInterceptor';
import  './utils';

export function createApp() {
  const app = createSSRApp(App);
  registerPlugins(app);
  initRequest(app);
  app.use(uviewPlus);
  app.use(store);
  return {
    app,
	store
  }
}
